export const jsonToUrl = function (params) {
  let str = [];
  for (let n in params) str.push(n + "=" + params[n]);
  return str.length < 1 ? "" : str.join("&");
};
